import { defineStore } from 'pinia';

export const useAppStore = defineStore(
  'app',
  () => {
    const sidebar = ref({
      opened: true,
    });

    return {
      sidebar,
    };
  },
  {
    persist: {
      key: 'appStore',
      storage: window.localStorage,
      paths: ['sidebar'],
    },
  }
);
